from django.contrib import admin
from .models import BlogBody,UserInfo
# Register your models here.

admin.site.register(UserInfo)


class BlogBodyAdmin(admin.ModelAdmin):
    list_filter = ('blog_type', 'blog_timestamp')
    list_display = ('blog_title', 'blog_type', 'blog_timestamp', 'blog_like', 'blog_clicknum')

    class Media:
        js = ('/static/js/kindeditor-4.1.10/kindeditor-min.js',
              '/static/js/kindeditor-4.1.10/lang/zh_CN.js',
              '/static/js/kindeditor-4.1.10/config.js',
              )


admin.site.register(BlogBody, BlogBodyAdmin)
